<?php
/*
+--------------------------------------------------------------------------
|   WeCenter [#免费开发#]
|   ========================================
|   by Jerry
|   http://www.5ihelp.com
|   ========================================
|   如果有兴趣可以加群{开发交流群} 485114585
|   ========================================
|   更改插件记得先备份，先备份，先备份，先备份
|   ========================================
+---------------------------------------------------------------------------
 */

namespace app\ajax\model;
use think\Model;
use think\Db;
class User extends Model
{
   	
 static public function checkLogin($user_name){
 	$rs = Db::name('users')->where('user_name|mobile|email','=',$user_name)->find();
	 	// $rs = Db::name('users')->where(" user_name ='%s' or mobile ='%s' or email='%s' ",array($user_name,$user_name,$user_name))->find();
	    return $rs;
	 }
   
}